// Zadanie I.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int choice;
	cout<<"Lukasz Kozak, Rafal Jan. Metody Numeryczne - Zadanie 1. FTIMS. 2012"<<endl;
	do{
		cout<<"[1] Metoda Bisekcji"<<endl;
		cout<<"[2] Metoda Stycznych"<<endl;
		cout<<"[0] Koniec."<<endl;
		cin>>choice;
		if (choice == 1)
			cout<<bisection_method();
		else if(choice == 2)
			cout<<newton_method();

	}while(choice!=0);
	return 0;
}

